<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>编辑打印模板</title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>

<body>
    <div style="padding:20px; margin:0 auto;">
        <form class="layui-form" action="" id="showForm">
            <div class="layui-form-item layui-col-xs12">
                <span class="hr-title">基本信息</span>
                <hr>
            </div>

            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">模板名称<i class="red">*</i></label>
                <div class="layui-input-block">
                    <input type="text" id="name" name="name" win-verify="required" placeholder="请输入模板名称"
                        class="layui-input" maxlength="200" />
                    <div class="layui-form-mid layui-word-aux">同一个布局绑定的模板名称不能重复</div>
                </div>
            </div>

            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">表单布局<i class="red">*</i></label>
                <div class="layui-input-block">
                    <select id="pageId" name="pageId" win-verify="required" lay-filter="pageId" lay-search="">
                    </select>
                </div>
            </div>

            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">纸张大小<i class="red">*</i></label>
                <div class="layui-input-block">
                    <select id="paperSize" name="paperSize" win-verify="required" lay-filter="paperSize" lay-search="">
                    </select>
                </div>
            </div>

            <div id="customSizeItem" style="display: none;">
                <div class="layui-form-item layui-col-xs6">
                    <label class="layui-form-label">宽度(mm)</label>
                    <div class="layui-input-block">
                        <input type="number" name="width" placeholder="请输入宽度" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-col-xs6">
                    <label class="layui-form-label">高度(mm)</label>
                    <div class="layui-input-block">
                        <input type="number" name="height" placeholder="请输入高度" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>

            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">纸张方向<i class="red">*</i></label>
                <div class="layui-input-block">
                    <select id="orientation" name="orientation" win-verify="required" lay-filter="orientation"
                        lay-search="">
                    </select>
                </div>
            </div>

            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">是否默认<i class="red">*</i></label>
                <div class="layui-input-block winui-radio" id="isDefaultRadio">
                </div>
            </div>

            <div class="layui-form-item layui-col-xs6">
                <label class="layui-form-label">启用状态<i class="red">*</i></label>
                <div class="layui-input-block winui-radio" id="enabledRadio">
                </div>
            </div>

            <div class="layui-form-item layui-col-xs12">
                <label class="layui-form-label">模板描述</label>
                <div class="layui-input-block">
                    <textarea id="remark" name="remark" placeholder="请输入模板描述" class="layui-textarea"></textarea>
                </div>
            </div>

            <div class="layui-form-item layui-col-xs12">
                <div class="layui-input-block">
                    <button class="winui-btn" type="button" id="cancle">
                        <language showName="com.skyeye.cancel"></language>
                    </button>
                    <button class="winui-btn" lay-submit lay-filter="formSubmit">
                        <language showName="com.skyeye.save"></language>
                    </button>
                </div>
            </div>
        </form>
    </div>

    <script src="../../assets/lib/layui/layui.js"></script>
    <script src="../../assets/lib/layui/custom.js"></script>
    <script type="text/javascript">
        layui.config({ base: '../../js/printTemplate/' }).use('write');
    </script>
</body>

</html>